﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace test.time.devexpress
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            //int i = 1;
            //MessageBox.Show(i.ToString());

            DataTable dt1 = new DataTable();
            dt1.Columns.Add("数");
            dt1.Columns.Add("平方");

            for (int i = 0; i < 10; i++)
            {
                DataRow dr1 = dt1.NewRow();
                dr1[0] = i.ToString();
                dr1[1] = (i * i).ToString();
                dt1.Rows.Add(dr1);

            }

            this.gridControl1.DataSource = dt1;
        }

        private void Form1_Load(object sender, EventArgs e)
        {

            //this.checkedComboBoxEdit1.d = new ArrayList { 1, 2, 3 };
            //this.checkedComboBoxEdit1.DataBindings.Add(new Binding("11", "1", "1"));


          


        }

        private void buttonEdit1_EditValueChanged(object sender, EventArgs e)
        {

        }

        private void buttonEdit1_Click(object sender, EventArgs e)
        {
            OpenFileDialog o1 = new OpenFileDialog();
            if (o1.ShowDialog() == DialogResult.OK)
            {
                this.buttonEdit1.Text = o1.FileName;

            }
        }

        private void checkButton1_CheckedChanged(object sender, EventArgs e)
        {
            int i = 1;
            MessageBox.Show(i.ToString());
        }

        private void gridControl1_Click(object sender, EventArgs e)
        {

        }
    }
}
